package pojo;

import java.io.Serializable;
import java.util.List;

public class Music implements Serializable {
    private int id;
    private String musicname;
    private String singer;
    private int ranking;
    private Category category;


    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }



    public List<Category> getCategoryList() {
        return categoryList;
    }

    public void setCategoryList(List<Category> categoryList) {
        this.categoryList = categoryList;
    }

    public Music(int id, String musicname, String singer, int ranking, Category category, int category_id, List<Category> categoryList) {
        this.id = id;
        this.musicname = musicname;
        this.singer = singer;
        this.ranking = ranking;
        this.category = category;
        this.category_id = category_id;
        this.categoryList = categoryList;
    }

    private int category_id;


    private List<Category> categoryList;

    public Music(){

    }
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMusicname() {
        return musicname;
    }

    public void setMusicname(String musicname) {
        this.musicname = musicname;
    }

    public String getSinger() {
        return singer;
    }

    public void setSinger(String singer) {
        this.singer = singer;
    }

    public int getRanking() {
        return ranking;
    }

    public void setRanking(int ranking) {
        this.ranking = ranking;
    }

    public int getCategory_id() {
        return category_id;
    }

    public void setCategory_id(int category_id) {
        this.category_id = category_id;
    }

    @Override
    public String toString() {
        return "Music [id=" + id + ", musicname=" + musicname + ", singer=" + singer + ", ranking=" + ranking;
    }
}
